package circle;

/**
 * @auther hanchao
 * @date 2016/12/13 20:34
 */
public class A {
    private B b;

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public static void main(String[] args){
        A a = new A();
        B b = new B();
        a.setB(b);
        b.setA(a);
        System.out.println(a.getB());
    }
}
